﻿// configurar o block ui para usar no site.
(function(def) {
    def.message = '<div class="ajax-loading"><div class="ajax-loading-cursor"></div><div class="ajax-message">Aguarde...</div></div>';
    def.css = {
        top: '48%',
        left: '48%',
        "-moz-border-radius": '5px',
        "-webkit-border-radius": '5px',
        "border-radius": '5px',
        "box-shadow": "1px 1px 5px #CCCCCC, -1px -1px 7px #CCCCCC"
    };
    def.overlayCSS = {
        backgroundColor: '#003665',
        opacity: 0.10
    };

    $.blockUINoOverlay = function() {
        $.blockUI({
            css: {
                "background-color": "#FFF",
                "border": "solid 2px #FEA612",
                "padding": "15px",
                "margin": "5px"
            },
            overlayCSS: {
                backgroundColor: "#000",
                opacity: 0
            }
        });
    };
})($.blockUI.defaults);